<?php

namespace common\models\hospital;

use Yii;

/**
 * This is the model class for table "jg_section_list".
 *
 * @property int $id
 * @property string $section
 * @property string $created_at
 * @property int $clinic_id 白友诊室id
 * @property string $clinic_name 白友诊室名
 */
class SectionList extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static $pix = '';

    public static function tableName()
    {
        return '{{%section_list_'.self::$pix.'}}';
    }

    public static function getDb()
    {
        return Yii::$app->db3;
    }

    public static $sectionName = [
      'nc' => [
          '白癜风一诊室' => '一诊',
          '白癜风二诊室' => '二诊',
          '白癜风三诊室' => '三诊',
          '一诊室' => '一诊',
          '二诊室' => '二诊',
          '三诊室' => '三诊',
      ]
    ];

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['section'], 'string', 'max' => 50],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'section' => 'Section',
            'created_at' => '创建时间'
        ];
    }
}
